<h1><%= title "Improvements" %></h1>

<table>
  <tr>
    <th>Name</th>
    <th>Price</th>
    <th>Income gold</th>
    <th>Income prestige</th>
    <th>Fortification</th>
    <th>Masters</th>
    <th>Grooms</th>
    <th>Pages</th>
    <th>Ladies</th>
    <th>Guards</th>
  </tr>

<% for improvement in @improvements %>
  <tr>
    <td><%=h improvement.name %></td>
    <td><%=h improvement.price %></td>
    <td><%=h improvement.income_gold %></td>
    <td><%=h improvement.income_prestige %></td>
    <td><%=h improvement.fortification %></td>
    <td><%=h improvement.masters %></td>
    <td><%=h improvement.grooms %></td>
    <td><%=h improvement.pages %></td>
    <td><%=h improvement.ladies %></td>
    <td><%=h improvement.guards %></td>
    <td><%= link_to 'Show', improvement %></td>
    <td><%= link_to 'Edit', edit_improvement_path(improvement) %></td>
    <td><%= link_to 'Destroy', improvement, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New improvement', new_improvement_path %> | <%= link_to 'Home', '/' %>
